#!/bin/bash
HOST="地址"
DB="数据库名"
USER="用户名"
PASS="密码"
PORT="端口号"
DIR="生成路径"
JSON_DEFINED="json文件路径"
EXEC="sequelize-auto -o ${DIR} -d ${DB} -h ${HOST} -u ${USER} -p ${PORT} -x ${PASS} -e mysql -a ${JSON_DEFINED}"

#执行
$EXEC
